package wqh.service.impl;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import wqh.dao.RoleDao;
import wqh.domain.Role;
import wqh.service.RoleService;

import java.util.List;

@Service("roleService")
public class RoleServiceImpl implements RoleService{

    @Autowired
    private RoleDao roleDao;

    public Role findById(Integer id) {
        return this.roleDao.findById(id);
    }

    public Role findByName(String name) {
        return this.roleDao.findByName(name);
    }

    public List<Role> findThanRole(Integer role_auth_type_id) {
        return this.roleDao.findThanRole(role_auth_type_id);
    }

    public Role findRole(Integer role_auth_type_id) {
        return this.roleDao.findRole(role_auth_type_id);
    }
}
